package com.reguang.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.reguang.bo.SysUserBO;
import com.reguang.pojo.SysUserDO;

public interface SysUserService {

	/**
	 * 
	 * <p>Title: queryOne</p>
	 * <p>Description: 根据条件查询一条数据</p>
	 * @param record
	 * @return
	 */
	SysUserDO queryOne(SysUserDO record);

	/**
	 * 
	 * <p>Title: list</p>
	 * <p>Description: </p>
	 * @param params
	 * @return
	 */
	PageInfo<SysUserDO> list(Map<String, Object> params);

	/**
	 * 
	 * <p>Title: queryByPrimaryKey</p>
	 * <p>Description: 根据主键查询数据</p>
	 * @param id
	 * @return
	 */
	SysUserBO queryByPrimaryKey(String id);

	/**
	 * 
	 * <p>Title: save</p>
	 * <p>Description: 保存</p>
	 * @param user
	 * @return
	 */
	Integer save(SysUserBO user);

	/**
	 * 
	 * <p>Title: update</p>
	 * <p>Description: 修改</p>
	 * @param user
	 * @return
	 */
	Integer update(SysUserBO user);

	/**
	 * 
	 * <p>Title: deleteById</p>
	 * <p>Description: 根据主键做删除</p>
	 * @param user
	 * @return
	 */
	Integer deleteById(String id);

	Integer batchRemove(String[] userIds);

	Integer resetPwd(SysUserDO user);
	
}
